package com.liuxn.dubbo.sample.demo.rpc;

import com.liuxn.dubbo.sample.demo.DemoApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author liuxn
 * @date 2024/10/10
 */
@Slf4j
@DubboService
public class DemoServiceImpl implements DemoApi {
    public String demoMethod(String req) {
        log.info(">> 接收到消费者传参：" + req);
        return "我是dubbo生产者" + req;
    }

    public String res(String req) {
        return "我是dubbo生产者res" + req;
    }
}
